package com.example.service;

import com.example.entity.User;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    public User createOrUpdate(String openid, String nickname, String avatar) {
        User user = new User();
        user.setWechatOpenid(openid);
        user.setNickname(nickname);
        user.setAvatar(avatar);
        return user;
    }
}